tools/libxc: Implement writev_exact() in the same style as write_exact()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 1 Jul 2014 18:10:35 +0000 (19:10 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 5 May 2015 13:29:41 +0000 (14:29 +0100)
commit76eb7cef6b84ca804f4db340e23ad9c501767c32
tree0d125aa11e69d8ea7bd80beac4eb438dc09f9534
parent50dcb3de603927db2fd87ba09e29c817415aaa44
tools/libxc: Implement writev_exact() in the same style as write_exact()

This implementation of writev_exact() will cope with an iovcnt greater than
IOV_MAX because glibc will actually let this work anyway, and it is very
useful not to have to work about this in the caller of writev_exact().  The
caller is still required to ensure that the sum of iov_len's doesn't overflow
a ssize_t.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <Ian.Campbell@citrix.com>
tools/libxc/xc_private.c
tools/libxc/xc_private.h